<%
String city = request.getParameter("city");
if (city != null) {
    session.setAttribute("result",city);
    response.sendRedirect("index.jsp");
}
%>